import request from "../../common/request"

export default {
	save: function (inputForm) {
		return request({
			url: "/notify/save",
			method: "post",
			data: inputForm,
		});
	},

	queryById: function (id) {
		return request({
			url: "/notify/queryById",
			method: "get",
			params: { id: id },
		});
	},
	query: function (params) {
		return request({
			url: "/notify/queryById",
			method: "get",
			params: params,
		});
	},

	list: function (params) {
		return request({
			url: "/notify/list",
			method: "get",
			params: params,
		});
	},
	
	getMessageByUserNo: function (params) {
		return request({
			url: "/sys/user/getMessageByUserNo",
			method: "get",
			params: params,
		});
	},
	
	updateMessStatusByGuid: function (uGuid) {
		return request({
			url: `/sys/user/updateMessStatusByGuid?uGuid=${uGuid}`,
			method: "post"
		});
	},
	
	delete: function (uGuid) {
		return request({
			url: `/sys/user/deleteMessByGuid?uGuid=${uGuid}`,
			method: "post"
		});
	},
};
